/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package locations.actions;

import com.opensymphony.xwork2.ActionSupport;
import locations.dao.implement.PacientDAOHibernateJPA;
import locations.model.Pacient;

public class NewPracticaAction extends ActionSupport {

	private static final long serialVersionUID = 1L;
	private Long id;
        private Pacient paciente;

	public String execute() {
		PacientDAOHibernateJPA dao = new PacientDAOHibernateJPA();
                setPaciente(dao.retrieveById(this.getId()));
		return SUCCESS;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

    /**
     * @return the paciente
     */
    public Pacient getPaciente() {
        return paciente;
    }

    /**
     * @param paciente the paciente to set
     */
    public void setPaciente(Pacient paciente) {
        this.paciente = paciente;
    }

}
